package com.example.newsapp.model;

public class NewsItem {
    private Integer id;
    private String title;
    private String time;
    private String imageUrl;
    private String author;

    public NewsItem(){}

    public NewsItem(Integer id, String title, String time, String imageUrl,String author) {
        this.id = id;
        this.title = title;
        this.time = time;
        this.imageUrl = imageUrl;
        this.author = author;
    }

    public Integer getId() {
        return this.id;
    }

    public String getTitle() {
        return title;
    }

    public String getTime() {
        return time;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}